Skip to main content

PolyGrid

Type

widget

Summary

Widget to represent data in table format.

Description

PolyGrid is the perfect widget for developers who want to display data in a simple and modern way. With PolyGrid you can quickly create beautiful widget-driven native scrollable tables for all platforms supported by LiveCode, ensuring optimal performance. Scrollbar support for all platforms means your data is always easily accessible, regardless of device or screen size.

Children Properties

Message

NameSummarySyntax
headerClickThis message is sent when the table header is clicked.headerClick <pColumnNumber>
columnEndResizeThis message is sent when a column is finished resizing.columnEndResize <pColumnNumber>
selectionChangedSent when the user selects one or more rows.selectionChanged <pHilitedRow>,<pPrevHilitedRows>
cellDoubleClicksent when the mouse button is released at the end of a double-click on the same cell.cellDoubleClick <pColumnNumber>,<pRowNumber>,<pCellRect>
cellClickSent when the mouse button is released at the end of a cell click.cellClick <pColumnNumber>,<pRowNumber>,<pCellRect>
columnBeginResizeThis message is sent when a column resize is initiated.columnBeginResize <pColumnNumber>
scrollBeginDragSent when one of the widget's scrollBars initiates a scroll.scrollBeginDrag <pAxis>
scrollEndDragSent when one of the widget's scrollBars finishes scrolling.scrollEndDrag <pAxis>
contentChangeSent when the content of the PolyGrid is modified.contentChange
rowFirstDrawThis message is sent when a list item is showed the first time.rowFirstDraw <pItemIndex>
scrollerDidScrollThis message is sent when the widget's content is scrolled.scrollerDidScroll
mouseReleaseSent when the user releases the mouse outside the control that was clicked.mouseRelease
mouseEntermouseEnter.mouseEnter
mouseLeavemouseLeave.mouseLeave

Property

NameSummarySyntax
textSizeThe textSize of a PolyGrid defines the height of the text of its content.set the textSize of widget to <Integer> get the textSize of widget
pgVScrollBarIsShowingDetermine if the vertical scrollbar is currently visible.get the pgVScrollBarIsShowing of widget
addDataBeforeA method for adding data to the table.set the addDataBefore of widget to <List>
TextThe text property reflects the content in tab delimited form.set the text of widget to <Data> get the text of widget
pgHilitedDataGet or set the hilited data array corresponding to hilited rows.set the pgHilitedData of widget to <DataArray> get the pgHilitedData of widget
pgPageSizeNumber of rows displayed in the visible area of the PolyGrid.get the pgPageSize of widget
hScrollSpecifies the horizontal hScroll of a PolyGrid.set the hScroll of widget to {<Integer>} get the hScroll of widget
hScrollBarShow or hide built-in horizontal scrollbar.set the hScrollBar of widget to <String> get the hScrollBar of widget
pgTextColorSpecifies the color of the table text.set the pgTextColor of widget to <RGB Color> get the pgTextColor of widget
hGridDefines if the horizontal lines are shown.set the hGrid of widget to <Boolean> get the hGrid of widget
rowColorSpecifies the fill color of rows.set the rowColor of widget to <RGB Color> get the rowColor of widget
csvDataThe csvData property reflects the content in CSV format.set the csvData of widget to <CSV> get the csvData of widget
multiHiliteSpecifies if the PolyGrid widget will allow to select more than one row at the same timeset the multiHilite of widget to {true | false} get the multiHilite of widget
pgDeleteColumnByNumberDelete a column by index.set the pgDeleteColumnByNumber of widget to <Integer>
pgMouseCellReturns the current cell coordinate under the mouse cursorget the pgMouseCell of widget
pgBackgroundColorSpecifies the background color of the table.set the pgBackgroundColor of widget to <RGBA Color> get the pgBackgroundColor of widget
pgDeleteColumnByNameDelete a column by name.set the pgDeleteColumnByName of widget to <String>
addDataA method for adding data to the table.set the addData of widget to <List>
rowHeightSet the height of rows.set the rowHeight of widget to <Integer> get the rowHeight of widget
scrollbarSecondColorSpecifies the secondary color that the table's scroll bar indicators will have.set the scrollbarSecondColor of widget to <RGBA Color> get the scrollbarSecondColor of widget
firstRowInViewReturns the first visible rowget the firstRowInView of widget
fixedFirstColMakes the first column to be always visibleset the fixedFirstCol of widget to <boolean> get the fixedFirstCol of widget
headerDividersSet to true to show header dividers.set the headerDividers of widget to {true | false} get the headerDividers of widget
pgHiliteColorThe color of the highlighted rows.set the pgHiliteColor of widget to <RGBA Color> get the pgHiliteColor of widget
pgTextOfRowGet and set the text of a row in a PolyGrid.set the pgTextOfRow of widget to <String> get the pgTextOfRow of widget
headerHeightSet the height of columns header.set the headerHeight of widget to <Integer> get the headerHeight of widget
pgDataGet or set the data array that the PolyGrid will display.set the pgData of widget to <DataArray> get the pgData of widget
scrollbarBackgroundColorSpecifies the background color of the table's scroll bars.set the scrollbarBackgroundColor of widget to <RGBA Color> get the scrollbarBackgroundColor of widget
pgColumnNamesSpecifies the names of columns.set the pgColumnNames of widget to <CommaDelimitedList> get the pgColumnNames of widget
dataHeightReports the height needed by an object to display its full contents without scrolling.get the dataHeight of widget
pgTextOfCellGet and set the text of a cell in a PolyGrid.set the pgTextOfCell of widget to {<column number>, <row number>} get the pgTextOfCell of widget
pgBorderColorSpecifies the color of an PolyGrid's border.set the pgBorderColor of widget to <RGBA Color> get the pgBorderColor of widget
headerTextStyleSpecifies the style or styles applied to the table header text.set the headerTextStyle of widget to {plain|bold|italic|bold,italic} get the headerTextStyle of widget
rawDataRad-only property to get the internal array representation of PolyGrid's content.get the rawData of widget
headerBackgroundColor2Sets the bottom color of the table headerset the headerBackgroundColor2 of widget to <RGBA Color> get the headerBackgroundColor2 of widget
pgHilitedTextColorThe text color of the highlighted rows.set the pgHilitedTextColor of widget to <RGB Color> get the pgHilitedTextColor of widget
pgColumnWidthsSpecifies the width for each column.set the pgColumnWidths of widget to <CommaDelimitedListOfNumbers> get the pgColumnWidths of widget
scrollbarWidthGet or set the width of the scroll barsset the scrollbarWidth of widget to <Integer> get the scrollbarWidth of widget
pgDataOfRowGet and set array of data from one row.set the pgDataOfRow of widget to {<NewDataOfRowArray>} get the pgDataOfRow of widget
lastRowInViewReturns the last visible rowget the lastRowInView of widget
pgHScrollBarIsShowingDetermine if the horizontal scrollbar is currently visible.get the pgHScrollBarIsShowing of widget
marginSpecifies the margin that all cells in a PolyGrid will have.set the margin of widget to <Integer> get the margin of widget
hilitedRowSpecifies the line(s) that will be hilited on a PolyGrid control.set the hilitedRow of widget to <Number/List> get the hilitedRow of widget
roundedRadiusThe radius of the corners of the widget.set the roundedRadius of widget to <integer> get the roundedRadius of widget
headerTextColorSpecifies the color of the table header text.set the headerTextColor of widget to <RGB Color> get the headerTextColor of widget
pgColumnLabelsSpecifies the text to show on top of columns.set the pgColumnLabels of widget to <CommaDelimitedList> get the pgColumnLabels of widget
pgInternalPointerIt is a pointer to tell certain properties where they should operate.set the pgInternalPointer of widget to <String> get the pgInternalPointer of widget
showHeaderSpecifies if the PolyGrid widget will show the column headerset the showHeader of widget to {true | false} get the showHeader of widget
headerTextSizeThe headerTextSize of a PolyGrid defines the height of the text of its header.set the headerTextSize of widget to <Integer> get the headerTextSize of widget
scrollSpecifies the vertical scroll of a PolyGrid.set the scroll of widget to {<Integer>} get the scroll of widget
pgHilitedTextGet or set the text corresponding to the highlighted rows.set the pgHilitedText of widget to <Text> get the pgHilitedText of widget
scrollbarFirstColorSpecifies the main color that the table scroll bar indicators will have.set the scrollbarFirstColor of widget to <RGBA Color> get the scrollbarFirstColor of widget
vGridDefines if the vertical lines are shown.set the vGrid of widget to <Boolean> get the vGrid of widget
pgMouseCellTextReturns the text under the mouse cursorget the pgMouseCellText of widget
lineSizeSpecifies the thickness with which the inner lines and borders of the PolyGrid are drawn.set the lineSize of widget to <Integer> get the lineSize of widget
fillEmptyRowsSet to true to fill with empty rows.set the fillEmptyRows of widget to {true | false} get the fillEmptyRows of widget
touchScrollingSpecifies if the PolyGrid widget will respond to mouse scrolling gesturesset the touchScrolling of widget to {true | false} get the touchScrolling of widget
numberOfColumnsReports the total number of columns in a PolyGrid.get the numberOfColumns of widget
addDataAfterA method for adding data to the table.set the addDataAfter of widget to <List>
scrollHilitedElementIntoViewSpecifies if the PolyGrid widget should adjust scroll to bring hilited element into viewset the scrollHilitedElementIntoView of widget to {true | false} get the scrollHilitedElementIntoView of widget
pgColumnsGet or set the data array that the PolyGrid uses to build columns.set the pgColumns of widget to <Array> get the pgColumns of widget
pgDeleteRowDelete rows.set the pgDeleteRow of widget to <List>
widgetIsScrollingFind out if the widget is currently scrolling.get the widgetIsScrolling of widget
rowAlternateColorSpecifies the fill color of alternate rows when property alternateRowColors is true.set the rowAlternateColor of widget to <RGB Color> get the rowAlternateColor of widget
scrollbarBorderColorSpecifies the border color of the table's scroll bars.set the scrollbarBorderColor of widget to <RGBA Color> get the scrollbarBorderColor of widget
rectOfCellGet the rect of a cell in a PolyGrid.get the rectOfCell of widget
headerBackgroundColorSets the upper color of the table headerset the headerBackgroundColor of widget to <RGBA Color> get the headerBackgroundColor of widget
mouseHoverHiliteSelects the mouse row when the mouse is movedset the mouseHoverHilite of widget to {true | false} get the mouseHoverHilite of widget
pgContentTypeOfColumnGet the data type of a column in a PolyGrid.get the pgContentTypeofColumn of widget
vScrollBarShow or hide built-in vertical scrollbar.set the vScrollBar of widget to <String> get the vScrollBar of widget
lineColorSets the color of the table column dividers.set the lineColor of widget to <RGBA Color> get the lineColor of widget
headerLineColorSets the color of the table column header dividers.set the headerLineColor of widget to <RGBA Color> get the headerLineColor of widget
alternateRowColorsSet to true to alternate the background colors of every other row.set the alternateRowColors of widget to {true | false} get the alternateRowColors of widget
pgAutoHiliteSpecifies if the PolyGrid widget will respond to mouse eventsset the pgAutoHilite of widget to {true | false} get the pgAutoHilite of widget
dataWidthReports the width needed by an object to display its full contents without scrolling.get the dataWidth of widget
tsvDataThe tsvData property reflects the content in TSV format.set the tsvData of widget to <TSV> get the tsvData of widget
numberOfRowsReports the total number of rows in a PolyGrid.get the numberOfRows of widget
pgMoveColumnChange a column position.set the pgMoveColumn of widget to <List>